package com.maigao.util;

/**
 * @program: maigao
 * @description:
 * @author: yongza
 * @create: 2021-10-29 17:29
 **/
public class AlarmUtil {

    public static String convertToAlramCategory(Integer productCategory) {
        String alarmCategory = null;
        switch (productCategory) {
            case 100:
            case 0:
                alarmCategory = "股票";
                break;
            case 1:
                alarmCategory = "基金";
                break;
            case 2:
                alarmCategory = "债券";
                break;
            case 3:
                alarmCategory = "黄金";
                break;
            case 4:
                alarmCategory = "外汇";
                break;
            case 5:
                alarmCategory = "期货";
                break;
            case 6:
                alarmCategory = "数字货币";
                break;
            case 7:
                alarmCategory = "碳行情";
                break;
            default:
                break;

        }
        return alarmCategory;
    }
}
